import { tryconnect, tryPost, tryMOCK } from '../utils/request.js';
import { Button } from 'antd'
const httpTry = () => {
    let param = { 'id': 123 };
    const clickGet = function (num) {
        console.log('点击', num)
        tryconnect(param)
    }
    return (<div>
        <Button onClick={() => { clickGet(123) }}>GET</Button>
        <Button onClick={() => { tryPost(param) }}>Post</Button>
        <Button onClick={() => { tryMOCK(param) }}>tryMOCK</Button>
    </div>)
}
export default httpTry;